package cn.csc.module.member.convert.area;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.member.controller.admin.area.vo.*;
import cn.csc.module.member.dal.dataobject.area.AreaDO;

/**
 * 省市区地区信息 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface AreaConvert {

    AreaConvert INSTANCE = Mappers.getMapper(AreaConvert.class);

    AreaDO convert(AreaCreateReqVO bean);

    AreaDO convert(AreaUpdateReqVO bean);

    AreaRespVO convert(AreaDO bean);

    List<AreaRespVO> convertList(List<AreaDO> list);

    PageResult<AreaRespVO> convertPage(PageResult<AreaDO> page);

    List<AreaExcelVO> convertList02(List<AreaDO> list);

}
